package com.hc.util;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by QQ.Cong on 2022-07-22 / 9:48
 *
 * @author: CongQingquan
 * @Description: Snowflake util
 */
public class SnowflakeUtils {

    private static final AtomicInteger COUNTER = new AtomicInteger(0);

    public static String getUniqueId() {
        return String.valueOf(COUNTER.incrementAndGet()+System.currentTimeMillis());
    }
}
